Part Number Hot Search : 
TE5544N MOB34D C2002 XX1KTR7 2N6292 TGA4832 MMBD7 NTE251
Product Description
Full Text Search
 

To Download LC6529N Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  cmos lsi ordering number : en * 5117 92995ha (ot) no. 5117-1/39 preliminary sanyo electric co.,ltd. semiconductor bussiness headquarters tokyo office tokyo bldg., 1-10, 1 chome, ueno, taito-ku, tokyo, 110-8534 japan 4-bit microcomputer for small-scale control applications LC6529N, lc6529f, lc6529l overview the LC6529N/f/l provides the basic architecture and instruction set of the sanyo lc6500 series of 4-bit single- chip microcomputers in a version specially for small-scale control applications involving circuits built with standard logic elements, applications using simple, comparator- based voltage or phase detectors, or other applications controlling a limited number of controls. the lc6529f is a replacement for the former lc6529h. (certain functions differ, however.) the n (medium-speed) and l (power- saving) versions are new additions to the lineup. features power-saving cmos design (standby mode accessed with halt instruction included.) memory: 1 kilobyte of 8-bit rom and 64 words of 4-bit ram instruction set: 51-member subset of lc6500 standard complement of 80 instructions (l version) wide range of operating voltages: 2.2 to 6.0 v (f version) 0.92 ?/3.0 v instruction cycle time flexible i/o ports four ports with up to 16 lines bidirectional i/o ports: 12 dedicated input ports: 4 (these double as comparator inputs.) i/o voltage limit: max. +15 v (open-drain configuration) output current: max. 20 ma sink current (capable of directly driving an led) choice of options to match system specifications choice of open-drain or pull-up resistor output configurations at the bit level for all ports choice of reset output levels for ports c and d in groups of 4 bits each port e configurable as four comparator inputs stack: four levels timers: 4-bit prescaler plus 8-bit programmable counter comparators: 4 channels (2 reference levels) separator reference level for each channel pair feedback resistor option for choice of input with or without hysteresis choice of clock oscillator options to match system specifications oscillator circuit options: 2-pin rc oscillator circuit (n and l versions) or 2-pin ceramic oscillator circuit (n, f, and l versions) frequency divider options: built-in 1/3 and 1/4 frequency dividers that eliminate the need for external frequency dividers
summary of functions note: the oscillator constants will be announced once the recommended circuit design has been decided. no. 5117- 2 /39 LC6529N, lc6529f, lc6529l item LC6529N lc6529f lc6529l [memory] rom 1024 8 bits 1024 8 bits 1024 8 bits ram 64 4 bits 64 4 bits 64 4 bits instruction set 51 51 51 [on-board functions] timers 4-bit prescaler plus 8-bit 4-bit prescaler plus 8-bit 4-bit prescaler plus 8-bit programmable counter programmable counter programmable counter stack levels 4 4 4 standby mode halt instruction places chip halt instruction places chip halt instruction places chip on standby. on standby. on standby. comparators 4 channels (2 reference levels) 4 channels (2 reference levels) 4 channels (2 reference levels) [i/o ports] number of ports 12 bidirectional i/o pins, 4 input pins 12 bidirectional i/o pins, 4 input pins 12 bidirectional i/o pins, 4 input pins i/o voltage limit max. 15 v (ports a, c, and d) max. 15 v (ports a, c, and d) max. 15 v (ports a, c, and d) output current 10 ma typ. 20 ma max. 10 ma typ. 20 ma max. 10 ma typ. 20 ma max. i/o circuit configuration choice of open-drain output or pull-up resistors at the bit level for ports a, c, and d reset output level choice of high or low in groups of 4 bits each (ports c and d) port function port e configurable as four comparator inputs [characteristics] minimum cycle time 2.77 s (v dd 3 3.0 v) 0.92 s (v dd 3 3.0 v) 3.84 s (v dd 3 2.2 v) operating temperature ?0 to +85 c ?0 to +85 c ?0 to +85 c power supply voltage 3.0 to 6.0 v 3.0 to 6.0 v 2.2 to 6.0 v current drain 1.1 ma typ. 1.6 ma typ. 1.0 ma typ. [clock] rc (850 khz, 400 khz typ.) rc (400 khz typ.) oscillator ceramic oscillator (400 khz, 800 khz, ceramic oscillator (2 mhz, 4 mhz) ceramic oscillator (400 khz, 800 khz, 2 mhz, 4 mhz) 2 mhz, 4 mhz) frequency divider options 1/1, 1/3, 1/4 1/1 1/1, 1/3, 1/4 [miscellaneous] package dip24s, ssop24, mfp30s dip24s, ssop24, mfp30s dip24s, ssop24, mfp30s otp included included included
pin assignments mfp30s dip24s/ssop24 note: do not use dip-soldering when mounting the ssop package on the circuit board. p ac ka g e dimensions unit: mm 3073a-mfp30s no. 5117- 3 /39 LC6529N, lc6529f, lc6529l sanyo: mfp30s [LC6529N, 6529f, 6529l] unit: mm 3067-dip24s sanyo: dip24s [LC6529N, 6529f, 6529l] unit: mm 3175a-ssop24 sanyo: ssop24 [LC6529N, 6529f, 6529l] note: the above diagrams give only the nominal dimensions. contact sanyo for drawings complete with tolerances.
pin names osc1, osc2: pins for rc or ceramic oscillator circuit test: test pin res: reset pin pa0 to pa3: bidirectional i/o port a, bits 0 to 3 pc0 to pc3: bidirectional i/o port c, bits 0 to 3 pd0 to pd3: bidirectional i/o port d, bits 0 to 3 pe0 to pe3: unidirectional input port e, bits 0 to 3 cmp0 to cmp3: comparator input port, bits 0 to 3 vref0, vref1: reference inputs system block diagram ram: data memory rom: program memory ac: accumulator pc: program counter alu: arithmetic and logic unit ir: instruction register dp: data pointer i.dec: instruction decoder e: e register cf: carry flag osc: oscillator circuit zf: zero flag tm: timer tmf: timer overflow flag sts: status register no. 5117- 4 /39 LC6529N, lc6529f, lc6529l
pin functions no. 5117- 5 /39 LC6529N, lc6529f, lc6529l pin no. symbol i/o function output driver type options state after reset v dd v ss osc1 osc2 pa0 pa1 pa2 pa3 pc0 pc1 pc2 pc3 pd0 pd1 pd2 pd3 pe0/cmp0 pe1/cmp1 pe2/cmp2 pe3/cmp3 v ref 0 v ref 1 res test i o i/o i/o i/o i i i i i power supply. normally +5 v. power supply. 0 v. pins for attaching external system clock oscillator circuit (rc or ceramic) bidirectional i/o port a0 to a3: 4-bit input (ip instruction), 4-bit output (op instruction), 1-bit conditionals (bp and bnp instructions), 1-bit set and reset (spb and rpb instructions) pa3 also doubles as standby operation control. block chattering from entering pa3 during the halt instruction execution cycle. bidirectional i/o port c0 to c3. functions the same as pa0 to pa3 except that there is no the standby operation control. option controls whether output is high or low after reset. bidirectional i/o port d0 to d3. functions and options the same as pc0 to pc3. when configured for comparator input: cmp0 and cmp1 use reference voltage v ref 0; cmp2 and cmp3 use reference voltage v ref 1. 4-bit (cmp0 to 3) input (ip instruction) 1-bit conditionals (bp and bnp instructions) when configured for port e input: 4-bit (e0-3) input (ip instruction) 1-bit conditionals (bp and bnp instructions) comparator reference level inputs: cmp0 and cmp1 use reference voltage v ref 0; cmp2 and cmp3 use reference voltage v ref 1. connect to v ss when pe0/cmp0 to pe3/cmp3 configured as port e. system reset input connect external capacitor for power up reset. low level input for a minimum of four clock cycles triggers a reset. chip test pin. normally connect to v ss . n channel: sink current type i/o voltage limit for open-drain configuration: max. +15 v p channel: high- impedance pull-up type n channel: sink current type i/o voltage limit for open-drain configuration: max. +15 v p channel: low- impedance pull-up type n channel: sink current type i/o voltage limit for open-drain configuration: max. +15 v p channel: high- impedance pull-up type 1 1 1 1 4 4 4 4 4 2 1 1 high output (output n channel transistor off) high or low (option) high or low (option) 1. 2-pin rc oscillator circuit (1-pin external clock) 2. 2-pin ceramic oscillator circuit 3. frequency divider options: 1/1, 1/3, 1/4 1. open-drain output 2. pull-up resistor ? choice of configuration 1. or 2. at bit level 1. open-drain output 2. pull-up resistor 3. high output after reset 4. low output after reset ? choice of configuration 1. or 2. at bit level ? choice of configuration 3. or 4. at port (4-bit) level 1. open-drain output 2. pull-up resistor 3. high output after reset 4. low output after reset ? choice of configuration 1. or 2. at bit level ? choice of configuration 3. or 4. at port (4-bit) level 1. comparator input 2. port e input 3. without feedback resistor 4. with feedback resistor ? choice of configuration 1. or 2. at port (4-bit) level ? options 3. and 4. only available with 1.
oscillator circuit options frequency divider options frequency divider options LC6529N no. 5117- 6 /39 LC6529N, lc6529f, lc6529l name circuit diagram conditions, etc. external clock 2-pin rc oscillator circuit 2-pin ceramic oscillator circuit leave osc2 open. name circuit diagram conditions, etc. no frequency divider (1/1) 1/3 frequency divider 1/4 frequency divider available with all three oscillator circuit options (n, f, and l versions) available only with external clock and ceramic oscillator circuit options (n and l versions) available only with external clock and ceramic oscillator circuit options (n and l versions) oscillator circuit frequency frequency divider options v dd range note (cycle time) 400 khz 1/1 (10 s) 3 to 6 v 1/3 and 1/4 frequency divider options not available 1/1 (5 s) 3 to 6 v 800 khz 1/3 (15 s) 3 to 6 v ceramic oscillator 1/4 (20 s) 3 to 6 v 2 mhz 1/3 (6 s) 3 to 6 v 1/1 frequency divider option not available 1/4 (8 s) 3 to 6 v 4 mhz 1/3 (3 s) 3 to 6 v 1/1 frequency divider option not available 1/4 (4 s) 3 to 6 v external clock based on rc 200 k to 1444 khz 1/1 (20 to 2.77 s) 3 to 6 v oscillator circuit 600 k to 4330 khz 1/3 (20 to 2.77 s) 3 to 6 v 800 k to 4330 khz 1/4 (20 to 3.70 s) 3 to 6 v use 1/1 frequency divider and recommended constants or, if this is not possible, one of the rc oscillator circuit frequency, frequency divider option, and v dd range 3 to 6 v combinations listed for external clocks based on an rc oscillator circuit. external clock based on ceramic this configuration not allowed. use an external clock based on an rc oscillator circuit instead. oscillator circuit
lc6529f lc6529l reset level options for ports c and d the following two options are available for controlling the output levels of ports c and d in groups of four bits each. comparator vs. port e configuration option the four pins pe0/cmp0 to pe3/cmp3 may be configured for comparator input or as port e. no. 5117- 7 /39 LC6529N, lc6529f, lc6529l oscillator circuit frequency frequency divider options v dd range note (cycle time) ceramic oscillator 4 mhz 1/1 (1 s) 3 to 6 v external clock based on rc 200 k to 4330 khz 1/1 (20 to 0.92 s) 3 to 6 v oscillator circuit external clock based on ceramic this configuration not allowed. use an external clock based on an rc oscillator circuit instead. oscillator circuit oscillator circuit frequency frequency divider options v dd range note (cycle time) 400 khz 1/1 (10 s) 2.2 to 6 v 1/3 and 1/4 frequency divider options not available 1/1 (5 s) 2.2 to 6 v 800 khz 1/3 (15 s) 2.2 to 6 v ceramic oscillator 1/4 (20 s) 2.2 to 6 v 2 mhz 1/3 (6 s) 2.2 to 6 v 1/1 frequency divider option not available 1/4 (8 s) 2.2 to 6 v 4 mhz 1/4 (4 s) 2.2 to 6 v 1/1 and 1/3 frequency divider options not available external clock based on rc 200 k to 1040 khz 1/1 (20 to 3.84 s) 2.2 to 6 v oscillator circuit 600 k to 3120 khz 1/3 (20 to 3.84 s) 2.2 to 6 v 800 k to 4160 khz 1/4 (20 to 3.84 s) 2.2 to 6 v use 1/1 frequency divider and recommended constants or, if this is not possible, one of the rc oscillator circuit frequency, frequency divider option, and v dd range 2.2 to 6 v combinations listed for external clocks based on an rc oscillator circuit. external clock based on ceramic this configuration not allowed. use an external clock based on an rc oscillator circuit instead. oscillator circuit option conditions, etc. high level output after reset selection affects all bits of port low level output after reset selection affects all bits of port option conditions, etc. comparator input selection affects all bits of port port e input selection affects all bits of port
comparator options the comparators offer the following two configuration options. port output configurations the bidirectional i/o ports a, c, and d offer a choice of two output configurations. no. 5117- 8 /39 LC6529N, lc6529f, lc6529l name circuit diagram conditions, etc. without feedback resistor with feedback resistor the comparator does not use hysteresis. the comparator, in combination with an external resistor, uses hysteresis. name circuit diagram conditions, etc. open drain (od) with pull-up resistors (pu) this option adds a high-impedance pull-up resistor for port a or d and a low-impedance one for port c.
specifications LC6529N absolute maximum ratings at ta = 25 c, v ss = 0 v note: 1. when the oscillator circuit in figure 3 and the guaranteed constant are used, this is guaranteed over the full amplitude. 2. averaged over 100-ms interval. allowable operating ranges at ta = ?0 to +85 c, v ss = 0 v, v dd = 3.0 to 6.0 v note: * maintain the power supply voltage at v dd until the halt instruction has completed execution, placing the chip in the standby mode. block chattering from entering pa3 during the halt instruction execution cycle. no. 5117- 9 /39 LC6529N, lc6529f, lc6529l parameter symbol conditions min typ max unit maximum supply voltage v dd max v dd ?.3 +7.0 v v i 1 osc1 * 1 ?.3 v dd + 0.3 input voltage v i 2 test, res ?.3 v dd + 0.3 v v i 3 port e (pe) configuration ?.3 v dd + 0.3 output voltage v o osc2 voltages up to that generated allowed . v i/o voltages v io 1 open-drain (od) configuration ?.3 +15 v v io 2 pull-up (pu) resistor configuration ?.3 v dd + 0.3 peak output current i op pa, pc, pd ? +20 ma i oa pa, pc, pd: average for pin over 100-ms interval ? +20 average output current s i oa 1 pa: total current for pins pa0 to pa3 * 2 ? +40 ma s i oa 2 pc, pd: total current for pins pc0 to pc3 and ?4 +90 pd0 to pd3 * 2 pd max1 ta = ?0 to +85 c (dip24s) 360 allowable power dissipation pd max2 ta = ?0 to +85 c (ssop24) 165 mw pd max3 ta = ?0 to +85 c (mfp30s) 150 operating temperature topr ?0 +85 c storage temperature tstg ?5 +125 parameter symbol conditions min typ max unit supply voltage v dd v dd 3.0 6.0 v standby voltage v st v dd : preserves contents of ram and registers * . 1.8 6.0 v v ih 1 open-drain (od) configuration: with output n-channel 0.7 v dd 13.5 transistor off v ih 2 pull-up (pu) resistor configuration: with output 0.7 v dd v dd input high level voltage n-channel transistor off v v ih 3 pe: using port e configuration 0.7 v dd v dd v ih 4 res: v dd = 1.8 to 6 v 0.8 v dd v dd v ih 5 osc1: using external clock option 0.8 v dd v dd v il 1 pa, pc, pd: with output n-channel transistor off, v ss 0.3 v dd v dd = 4 to 6 v v il 2 pa, pc, pd: with output n-channel transistor off v ss 0.25 v dd v il 3 pe: using port e configuration, v dd = 4 to 6 v v ss 0.3 v dd v il 4 pe: using port e configuration v ss 0.25 v dd input low level voltage v il 5 osc1: using external clock option, v dd = 4 to 6 v v ss 0.25 v dd v v il 6 osc1: using external clock option v ss 0.2 v dd v il 7 test: v dd = 4 to 6 v v ss 0.3 v dd v il 8 test v ss 0.25 v dd v il 9 res: v dd = 4 to 6 v v ss 0.25 v dd v il 10 res v ss 0.2 v dd operating frequency fop using the built-in 1/3 or 1/4 frequency dividers extends 200 (20) 1444 (2.77) khz ( s) (cycle time) (tcyc) the maximum to 4.33 mhz. continued on next page.
continued from preceding page. electrical characteristics at ta = ?0 to +85 c, v ss = 0 v, v dd = 3.0 to 6.0 v note: * the rc oscillator and external clock options require a schmidt trigger configuration for osc1. no. 5117- 10 /39 LC6529N, lc6529f, lc6529l parameter symbol conditions min typ max unit [external clock conditions] frequency text 200 4330 khz pulse width texth, textl 69 ns rise/fall times textr, textf 50 [oscillator guaranteed constants] cext osc1, osc2: v dd = 4 to 6 v, figure 2 220 5% pf 2-pin rc oscillator circuit cext osc1, osc2: figure 2 220 5% rext osc1, osc2: v dd = 4 to 6 v, figure 2 4.7 1% k rext osc1, osc2: figure 2 12.0 1% ceramic oscillator figure 3 see table 1. osc1: if the clock frequency exceeds 1.444 mhz, use the built-in 1/3 or 1/4 frequency divider. figure 1 parameter symbol conditions min typ max unit open-drain (od) configuration for port: with output i ih 1 n-channel transistor off. (includes transistor? leak 5.0 input high level current current.) v in = 13.5 v a i ih 2 pe: using port e configuration, v in = v dd 1.0 i ih 3 osc1: using external clock option, v in = v dd 1.0 open-drain (od) configuration for port: with output i il 1 n-channel transistor off. (includes transistor? leak ?.0 current.) v in = v ss a pull-up (pu) resistor configuration for port a or d: i il 2 with output n-channel transistor off. (includes ?20 ?1.5 transistor? leak current.) v in = v ss input low level current pull-up (pu) resistor configuration for port c: i il 3 with output n-channel transistor off. (includes ?.00 ?.17 ma transistor? leak current.) v in = v ss i il 4 pe: using port e configuration, v in = v ss ?.0 i il 5 res: v in = v ss ?5 ?0 a i il 6 osc1: using external clock option, v in = v ss ?.0 v oh 1 pull-up (pu) resistor configuration for port c: v dd ?1.2 output high level voltage i oh = ?00 a, v dd = 4 to 6 v v v oh 2 pull-up (pu) resistor configuration for port c: v dd ?0.5 i oh = ?0 a v ol 1 pa, pc, pd: i ol = 10 ma, v dd = 4 to 6 v 1.5 output low level voltage v ol 2 pa, pc, pd: with i ol for each port less than or equal 0.4 v to 1 ma, i ol = 1.8 ma hysteresis voltage v his 1 res 0.1 v dd v v his 2 osc1 * : using rc oscillator or external clock option 0.1 v dd
note: * * f cfosc is the allowable oscillator frequency. comparator characteristics for comparator option at ta = ?0 to +85 c, v ss = 0 v, v dd = 3.0 to 6.0 v no. 5117- 11 /39 LC6529N, lc6529f, lc6529l parameter symbol conditions min typ max unit [current drain] rc oscillator i dd op 1 v dd : figure 2, 850 khz (typ) 0.8 2.0 ma i dd op 2 v dd : figure 2, 400 khz (typ) 0.4 1.0 i dd op 3 v dd : figure 3, 4 mhz, 1/3 frequency divider 1.6 4.0 i dd op 4 v dd : figure 3, 4 mhz, 1/4 frequency divider 1.6 4.0 ceramic oscillator i dd op 5 v dd : figure 3, 2 mhz, 1/3 frequency divider 1.3 3.0 ma i dd op 6 v dd : figure 3, 2 mhz, 1/4 frequency divider 1.3 3.0 i dd op 7 v dd : figure 3, 800 khz 1.1 2.6 i dd op 8 v dd : figure 3, 400 khz 0.9 2.4 v dd : 200 to 667 khz, 1/1 frequency divider, i dd op 9 600 to 2000 khz, 1/3 frequency divider, 1.0 2.5 external clock 800 to 2667 khz, 1/4 frequency divider ma v dd : 200 to 1444 khz, 1/1 frequency divider, i dd op 10 600 to 4330 khz, 1/3 frequency divider, 1.6 4.2 800 to 4330 khz, 1/4 frequency divider i dd st1 v dd : with output n-channel transistor off and 0.05 10 standby operation port level = v dd , v dd = 6 v a i dd st2 v dd : with output n-channel transistor off and 0.025 5 port level = v dd , v dd = 3 v [oscillator characteristics] (rc oscillator) osc1, osc2: figure 2, cext = 220 pf 5%, 309 400 577 oscillator frequency f mosc rext = 12.0 k 1% khz osc1, osc2: figure 2, cext = 220 pf 5%, 660 850 1229 rext = 4.7 k 1%, v dd = 4 to 6 v [oscillator characteristics] (ceramic oscillator) osc1, osc2: figure 3, f o = 400 khz 384 400 416 oscillator frequency f cfosc * osc1, osc2: figure 3, f o = 800 khz 768 800 832 khz osc1, osc2: figure 3, f o = 2 mhz 1920 2000 2080 osc1, osc2: figure 3, f o = 4 mhz 3840 4000 4160 figure 4, f o = 400 khz 10 oscillator stabilization interval t cfs figure 4, f o = 800 khz, f o = 2 mhz, f o = 4 mhz, 10 ms 1/3, 1/4 frequency divider [pull-up resistors] pull-up (pu) resistor configuration for port a or d: rpp1 with output n-channel transistor off and v in = v ss , 30 70 130 i/o ports v dd = 5 v pull-up (pu) resistor configuration for port c: k rpp2 with output n-channel transistor off and v in = v ss , 1.0 2.3 3.9 v dd = 5 v reset port ru res: v in = v ss , v dd = 5 v 200 500 725 external reset characteristic: t rst see reset time figure 6. pin capacitance c p f = 1 mhz, v in = v ss for pins other than one 10 pf being measured parameter symbol conditions min typ max unit reference input voltage range v rfin v ref 0 and v ref 1 v ss + 0.3 v dd ?1.5 v inphase input voltage range v cmin cmp0 to cmp3 v ss v dd ?1.5 v offset voltage v off v cmin = v ss to v dd ?1.5 v 50 300 mv response speed trs1 figure 5: v dd = 4 to 6 v 1.0 5.0 s trs2 figure 5 1.0 200 input high level current i ih 1 v ref 0 and v ref 1 1.0 a i ih 2 cmp0 to cmp3: without feedback resistor option 1.0 input low level current i il 1 v ref 0 and v ref 1 ?.0 a i il 2 cmp0 to cmp3: without feedback resistor option ?.0 feedback resistor rcmfb cmp0 to cmp3: with feedback resistor option 460 k
table 1 guaranteed constants for ceramic oscillators figure 1 external clock input waveform no. 5117- 12 /39 LC6529N, lc6529f, lc6529l standard type chip type oscillator type manufacturer oscillator c1 c2 rd manufacturer oscillator c1 c2 [external capacitor] 4-mhz ceramic murata cs a4.00mg 33 pf 10% 33 pf 10% murata cs ac4.00mgc 33 pf 10% 33 pf 10% oscillator kyocera kbr-4.0msa 33 pf 10% 33 pf 10% 2-mhz ceramic murata cs a2.00mg 33 pf 10% 33 pf 10% murata cs ac2.00mgc 33 pf 10% 33 pf 10% oscillator kyocera kbr-2.0msa 33 pf 10% 33 pf 10% [built-in capacitor] 4-mhz ceramic murata cs a4.00mg kyocera kbr-4.0mws oscillator kyocera kbr-4.0msa 2-mhz ceramic murata cs a2.00mg kyocera kbr-2.0mws oscillator 800-khz ceramic murata cs b800j 100 pf 10% 100 pf 10% 3.3 k oscillator kyocera kbr-800f/y 150 pf 10% 150 pf 10% 400-khz ceramic murata cs b400p 220 pf 10% 220 pf 10% 3.3 k oscillator kyocera kbr-400bk/y 330 pf 10% 330 pf 10%
figure 2 2-pin rc oscillator circuit figure 3 ceramic oscillator circuit figure 4 oscillator stabilization interval figure 5 comparator response speed (trs) timing no. 5117- 13 /39 LC6529N, lc6529f, lc6529l
figure 6 reset circuit LC6529N rc oscillator characteristics figure 7 gives the rc oscillator characteristics for the LC6529N. the frequency fluctuation ranges are as follows: 1. for v dd = 3.0 to 6.0 v, ta = ?0 to +85 c, cext = 220 pf, and rext = 12.0 k , 309 khz f mosc 577 khz 2. for v dd = 4.0 to 6.0 v, ta = ?0 to +85 c, cext = 220 pf, and rext = 4.7 k , 660 khz f mosc 1229 khz these results are only guaranteed for the above rc constants. if the above values are not available, keep the rc constants within the following ranges. (see figure 7.) rext = 3 to 20 k , cext = 150 to 390 pf note: 1. the oscillator frequency must be within the range between 350 and 750 khz for v dd = 5.0 v and ta = 25 c. 2. make sure that the oscillator frequency remains well within the operating clock frequency range (see frequency divider option table.) for the two ranges v dd = 3.0 to 6.0 v, ta = ?0 to +85 c and v dd = 4.0 to 6.0 v, ta = ?0 to +85 c. figure 7 rc oscillator frequency data (sample values) no. 5117- 14 /39 LC6529N, lc6529f, lc6529l note: when the power supply rising interval is zero, a value of 0.1 f for cres produces a reset interval of 10 to 100 ms. if the power supply rising interval is larger, adjust cres to produce a minimum interval of 10 ms for the oscillation to stabilize.
lc6529f absolute maximum ratings at ta = 25 c, v ss = 0 v note: 1. when the oscillator circuit in figure 3 and the guaranteed constant are used, this is guaranteed over the full amplitude. 2. averaged over 100-ms interval. allowable operating ranges at ta = ?0 to +85 c, v ss = 0 v, v dd = 3.0 to 6.0 v note: * maintain the power supply voltage at v dd until the halt instruction has completed execution, placing the chip in the standby mode. block chattering from entering pa3 during the halt instruction execution cycle. no. 5117- 15 /39 LC6529N, lc6529f, lc6529l parameter symbol conditions min typ max unit maximum supply voltage v dd max v dd ?.3 +7.0 v v i 1 osc1 * 1 ?.3 v dd + 0.3 input voltage v i 2 test, res ?.3 v dd + 0.3 v v i 3 port e (pe) configuration ?.3 v dd + 0.3 output voltage v o osc2 voltages up to that generated allowed . v i/o voltages v io 1 open-drain (od) configuration ?.3 +15 v v io 2 pull-up (pu) resistor configuration ?.3 v dd + 0.3 peak output current i op pa, pc, pd ? +20 ma i oa pa, pc, pd: average for pin over 100-ms interval ? +20 average output current s i oa 1 pa: total current for pins pa0 to pa3 * 2 ? +40 ma s i oa 2 pc, pd: total current for pins pc0 to pc3 and ?4 +90 pd0 to pd3 * 2 pd max1 ta = ?0 to +85 c (dip24s) 360 allowable power dissipation pd max2 ta = ?0 to +85 c (ssop24) 165 mw pd max3 ta = ?0 to +85 c (mfp30s) 150 operating temperature topr ?0 +85 c storage temperature tstg ?5 +125 parameter symbol conditions min typ max unit supply voltage v dd v dd 3.0 6.0 v standby voltage v st v dd : preserves contents of ram and registers * . 1.8 6.0 v v ih 1 open-drain (od) configuration: with output n-channel 0.7 v dd 13.5 transistor off v ih 2 pull-up (pu) resistor configuration: with output 0.7 v dd v dd input high level voltage n-channel transistor off v v ih 3 pe: using port e configuration 0.7 v dd v dd v ih 4 res: v dd = 1.8 to 6 v 0.8 v dd v dd v ih 5 osc1: using external clock option 0.8 v dd v dd v il 1 pa, pc, pd: with output n-channel transistor off, v ss 0.3 v dd v dd = 4 to 6 v v il 2 pa, pc, pd: with output n-channel transistor off v ss 0.25 v dd v il 3 pe: using port e configuration, v dd = 4 to 6 v v ss 0.3 v dd v il 4 pe: using port e configuration v ss 0.25 v dd input low level voltage v il 5 osc1: using external clock option, v dd = 4 to 6 v v ss 0.25 v dd v v il 6 osc1: using external clock option v ss 0.2 v dd v il 7 test: v dd = 4 to 6 v v ss 0.3 v dd v il 8 test v ss 0.25 v dd v il 9 res: v dd = 4 to 6 v v ss 0.25 v dd v il 10 res v ss 0.2 v dd operating frequency fop 200 4330 khz (cycle time) (tcyc) (20) (0.92) ( s) [external clock conditions] frequency text 200 4330 khz pulse width texth, textl osc1: figure 1 69 ns rise/fall times textr, textf 50 oscillator guaranteed constants figure 2 see table 1. ceramic oscillator
electrical characteristics at ta = ?0 to +85 c, v ss = 0 v, v dd = 3.0 to 6.0 v note: * the rc oscillator and external clock options require a schmidt trigger configuration for osc1. note: * f cfosc is the allowable oscillator frequency. no. 5117- 16 /39 LC6529N, lc6529f, lc6529l parameter symbol conditions min typ max unit open-drain (od) configuration for port: with output i ih 1 n-channel transistor off. (includes transistor? leak 5.0 input high level current current.) v in = 13.5 v a i ih 2 pe: using port e configuration, v in = v dd 1.0 i ih 3 osc1: using external clock option, v in = v dd 1.0 open-drain (od) configuration for port: with output i il 1 n-channel transistor off. (includes transistor? leak ?.0 current.) v in = v ss a pull-up (pu) resistor configuration for port: i il 2 with output n-channel transistor off. (includes ?20 ?1.5 transistor? leak current.) v in = v ss input low level current pull-up (pu) resistor configuration for port c: i il 3 with output n-channel transistor off. (includes ?.00 ?.17 ma transistor? leak current.) v in = v ss i il 4 pe: using port e configuration, v in = v ss ?.0 i il 5 res: v in = v ss ?5 ?0 a i il 6 osc1: using external clock option, v in = v ss ?.0 v oh 1 pull-up (pu) resistor configuration for port c: v dd ?1.2 output high level voltage i oh = ?00 a, v dd = 4 to 6 v v v oh 2 pull-up (pu) resistor configuration for port c: v dd ?0.5 i oh = ?0 a v ol 1 pa, pc, pd: i ol = 10 ma, v dd = 4 to 6 v 1.5 output low level voltage v ol 2 pa, pc, pd: with i ol for each port less than or equal 0.4 v to 1 ma, i ol = 1.8 ma hysteresis voltage v his 1 res 0.1 v dd v v his 2 osc1 * : using rc oscillator or external clock option 0.1 v dd parameter symbol conditions min typ max unit [current drain] ceramic oscillator i dd op 1 v dd : figure 2, 4 mhz, 200 to 4330 khz, 1.6 4.0 1/1 frequency divider ma external clock i dd op 2 note: with output n-channel transistor off and 1.6 4.2 port level = v dd i dd st 1 v dd : with output n-channel transistor off and 0.05 10 standby operation port level = v dd , v dd = 6 v a i dd st 2 v dd : with output n-channel transistor off and 0.025 5 port level = v dd , v dd = 3 v [oscillator characteristics] (ceramic oscillator) oscillator frequency f cfosc osc1, osc2: figure 2, f o = 4 mhz * 3840 4000 4160 khz oscillator stabilization interval t cfs figure 3, f o = 4 mhz 10 ms [pull-up resistors] pull-up (pu) resistor configuration for port a or d: rpp1 with output n-channel transistor off and v in = v ss , 30 70 130 i/o ports v dd = 5 v pull-up (pu) resistor configuration for port c: k rpp2 with output n-channel transistor off and v in = v ss , 1.0 2.3 3.9 v dd = 5 v reset port ru res: v in = v ss , v dd = 5 v 200 500 725 external reset characteristic: t rst see reset time figure 5. pin capacitance c p f = 1 mhz, v in = v ss for pins other than one 10 pf being measured
comparator characteristics for comparator option at ta = ?0 to +85 c, v ss = 0 v, v dd = 3.0 to 6.0 v table 1. guaranteed constants for ceramic oscillators figure 1 external clock input waveform no. 5117- 17 /39 LC6529N, lc6529f, lc6529l parameter symbol conditions min typ max unit reference input voltage range v rfin v ref 0, v ref 1 v ss + 0.3 v dd ?1.5 v inphase input voltage range v cmin cmp0 to cmp3 v ss v dd ?1.5 v offset voltage v off v cmin = v ss to v dd ?1.5 v 50 300 mv response speed trs1 figure 4: v dd = 4 to 6 v 1.0 5.0 s trs2 figure 4 1.0 200 input high level current i ih 1 v ref 0, v ref 1 1.0 a i ih 2 cmp0 to cmp3: without feedback resistor option 1.0 input low level current i il 1 v ref 0, v ref 1 ?.0 a i il 2 cmp0 to cmp3: without feedback resistor option ?.0 feedback resistor rcmfb cmp0 to cmp3: with feedback resistor option 460 k standard type chip type oscillator type manufacturer oscillator c1 c2 rd manufacturer oscillator c1 c2 [external capacitor] 4-mhz ceramic murata cs a4.00mg 33 pf 10% 33 pf 10% murata cs ac4.00mgc 33 pf 10% 33 pf 10% oscillator kyocera kbr-4.0msa 33 pf 10% 33 pf 10% 2-mhz ceramic murata cs a2.00mg 33 pf 10% 33 pf 10% murata cs ac2.00mgc 33 pf 10% 33 pf 10% oscillator kyocera kbr-2.0msa 33 pf 10% 33 pf 10% [built-in capacitor] 4-mhz ceramic murata cs a4.00mg kyocera kbr-4.0mws oscillator kyocera kbr-4.0msa 2-mhz ceramic murata cs a2.00mg kyocera kbr-2.0mws oscillator
figure 2 ceramic oscillator circuit figure 3 oscillator stabilization interval figure 4 comparator response speed (trs) timing no. 5117- 18 /39 LC6529N, lc6529f, lc6529l
figure 5 reset circuit no. 5117- 19 /39 LC6529N, lc6529f, lc6529l note: when the power supply rising interval is zero, a value of 0.1 f for cres produces a reset interval of 10 to 100 ms. if the power supply rising interval is larger, adjust cres to produce a minimum interval of 10 ms for the oscillation to stabilize.
lc6529l absolute maximum ratings at ta = 25 c, v ss = 0 v note: 1. when the oscillator circuit in figure 3 and the guaranteed constant are used, this is guaranteed over the full amplitude. 2. averaged over 100-ms interval. allowable operating ranges at ta = ?0 to +85 c, v ss = 0 v, v dd = 2.2 to 6.0 v note: * maintain the power supply voltage at v dd until the halt instruction has completed execution, placing the chip in the standby mode. block chattering from entering pa3 during the halt instruction execution cycle. no. 5117- 20 /39 LC6529N, lc6529f, lc6529l parameter symbol conditions min typ max unit maximum supply voltage v dd max v dd ?.3 +7.0 v v i 1 osc1 * 1 ?.3 v dd + 0.3 input voltage v i 2 test, res ?.3 v dd + 0.3 v v i 3 port e (pe) configuration ?.3 v dd + 0.3 output voltage v o osc2 voltages up to that generated allowed . v i/o voltages v io 1 open-drain (od) configuration ?.3 +15 v v io 2 pull-up (pu) resistor configuration ?.3 v dd + 0.3 peak output current i op pa, pc, pd ? +20 ma i oa pa, pc, pd: average for pin over 100-ms interval ? +20 average output current s i oa 1 pa: total current for pins pa0 to 3 * 2 ? +40 ma s i oa 2 pc, pd: total current for pins pc0 to pc3 and ?4 +90 pd0 to pd3 * 2 pd max1 ta = ?0 to +85 c (dip24s) 360 allowable power dissipation pd max2 ta = ?0 to +85 c (ssop24) 165 mw pd max3 ta = ?0 to +85 c (mfp30s) 150 operating temperature topr ?0 +85 c storage temperature tstg ?5 +125 parameter symbol conditions min typ max unit supply voltage v dd v dd 2.2 6.0 v standby voltage v st v dd : preserves contents of ram and registers * . 1.8 6.0 v v ih 1 open-drain (od) configuration: with output n-channel 0.7 v dd 13.5 transistor off v ih 2 pull-up (pu) resistor configuration: with output 0.7 v dd v dd input high level voltage n-channel transistor off v v ih 3 pe: using port e configuration 0.7 v dd v dd v ih 4 res: v dd = 1.8 to 6 v 0.8 v dd v dd v ih 5 osc1: using external clock option 0.8 v dd v dd v il 1 pa, pc, pd: with output n-channel transistor off v ss 0.2 v dd v il 2 pe: using port e configuration v ss 0.2 v dd input low level voltage v il 3 osc1: using external clock option v ss 0.15 v dd v v il 4 test v ss 0.2 v dd v il 5 res v ss 0.15 v dd operating frequency fop using the built-in 1/3 or 1/4 frequency dividers extends 200 1040 khz (cycle time) (tcyc) the maximum to 4.16 mhz. (20) (3.84) ( s) [external clock conditions] frequency text 200 4160 khz pulse width texth, textl 120 ns rise/fall times textr, textf 100 [oscillator guaranteed constants] 2-pin rc oscillator circuit cext osc1, osc2: figure 2 220 5% pf rext osc1, osc2: figure 2 12.0 1% k ceramic oscillator figure 3 see table 1. osc1: if the clock frequency exceeds 1.040 mhz, use the built-in 1/3 or 1/4 frequency divider. figure 1
electrical characteristics at ta = ?0 to +85 c, v ss = 0 v, v dd = 2.2 to 6.0 v note: * the rc oscillator and external clock options require a schmidt trigger configuration for osc1. no. 5117- 21 /39 LC6529N, lc6529f, lc6529l parameter symbol conditions min typ max unit open-drain (od) configuration for port: with output i ih 1 n-channel transistor off. (includes transistor? leak 5.0 input high level current current.) v in = 13.5 v a i ih 2 pe: using port e configuration, v in = v dd 1.0 i ih 3 osc1: using external clock option, v in = v dd 1.0 open-drain (od) configuration for port: with output i il 1 n-channel transistor off. (includes transistor? leak ?.0 current.) v in = v ss a pull-up (pu) resistor configuration for port: i il 2 with output n-channel transistor off. (includes ?20 ?1.5 transistor? leak current.) v in = v ss input low level current pull-up (pu) resistor configuration for port c: i il 3 with output n-channel transistor off. (includes ?.00 ?.17 ma transistor? leak current.) v in = v ss i il 4 pe: using port e configuration, v in = v ss ?.0 i il 5 res: v in = v ss ?5 ?0 a i il 6 osc1: using external clock option, v in = v ss ?.0 output high level voltage v oh pull-up (pu) resistor configuration for port c: v dd ?0.5 v i oh = ?0 a v ol 1 pa, pc, pd: i ol = 3 ma 1.5 output low level voltage v ol 2 pa, pc, pd: with i ol for each port less than 0.4 v or equal to 1 ma, i ol = 1 ma hysteresis voltage v his 1 res 0.1 v dd v v his 2 osc1 * : using rc oscillator or external clock option 0.1 v dd parameter symbol conditions min typ max unit [current drain] rc oscillator i dd op 1 v dd : figure 2, 400 khz (typ) 0.4 1.0 i dd op 2 v dd : figure 3, 4 mhz, 1/4 frequency divider 1.6 4.0 i dd op 3 v dd : figure 3, 4 mhz, 1/4 frequency divider, 0.4 0.8 v dd = 2.2 v i dd op 4 v dd : figure 3, 2 mhz, 1/3 frequency divider 1.3 3.0 ma ceramic oscillator i dd op 5 v dd : figure 3, 2 mhz, 1/4 frequency divider 1.3 3.0 i dd op 6 v dd : figure 3, 2 mhz, 1/3, 1/4 frequency divider 0.3 0.6 v dd = 2.2 v i dd op 7 v dd : figure 3, 800 khz 1.1 2.6 i dd op 8 v dd : figure 3, 400 khz 0.9 2.4 v dd : 200 to 667 khz, 1/1 frequency divider, external clock i dd op 9 600 to 2000 khz, 1/3 frequency divider, 1.0 2.5 ma 800 to 2667 khz, 1/4 frequency divider i dd st1 v dd : with output n-channel transistor off and 0.05 10 standby operation port level = v dd , v dd = 6 v a i dd st2 v dd : with output n-channel transistor off and 0.025 5 port level = v dd , v dd = 2.2 v [oscillator characteristics] rc oscillator oscillator frequency f mosc osc1, osc2: figure 2, cext = 220 pf 5%, 275 400 577 khz rext = 12.0 k 1% [oscillator characteristics] (ceramic oscillator) osc1, osc2: figure 3, f o = 400 khz 384 400 416 osc1, osc2: figure 3, f o = 800 khz 768 800 832 oscillator frequency f cfosc * osc1, osc2: figure 3, f o = 2 mhz 1920 2000 2080 khz osc1, osc2: figure 3, f o = 4 mhz, 3840 4000 4160 1/4 frequency divider figure 4, f o = 400 khz 10 oscillator stabilization interval t cfs figure 4, f o = 800 khz, 10 ms f o = 2 mhz, 1/3, 1/4 frequency divider, f o = 4 mhz, 1/4 frequency divider continued on next page.
continued from preceding page. note * f cfosc is the allowable oscillator frequency. comparator characteristics for comparator option at ta = ?0 to +85 c, v ss = 0 v, v dd = 3.0 to 6.0 v table 1 guaranteed constants for ceramic oscillators no. 5117- 22 /39 LC6529N, lc6529f, lc6529l parameter symbol conditions min typ max unit reference input voltage range v rfin v ref 0, v ref 1 v ss + 0.3 v dd ?1.5 v inphase input voltage range v cmin cmp0 to cmp3 v ss v dd ?1.5 v offset voltage v off v cmin = v ss to v dd ?1.5 v 50 300 mv response speed trs figure 5 1.0 200 s input high level current i ih 1 v ref 0, v ref 1 1.0 a i ih 2 cmp0 to cmp3: without feedback resistor option 1.0 input low level current i il 1 v ref 0, v ref 1 ?.0 a i il 2 cmp0 to cmp3: without feedback resistor option ?.0 feedback resistor rcmfb cmp0 to cmp3: with feedback resistor option 460 k parameter symbol conditions min typ max unit [pull-up resistors] pull-up (pu) resistor configuration for port a or d: rpp1 with output n-channel transistor off and v in = v ss , 30 70 130 i/o ports v dd = 5 v pull-up (pu) resistor configuration for port c: k rpp2 with output n-channel transistor off and v in = v ss , 1.0 2.3 3.9 v dd = 5 v reset port ru res: v in = v ss , v dd = 5 v 200 500 725 external reset characteristic: t rst see reset time figure 6. pin capacitance c p f = 1 mhz, v in = v ss for pins other than one 10 pf being measured standard type chip type oscillator type manufacturer oscillator c1 c2 rd manufacturer oscillator c1 c2 [external capacitor] 4-mhz ceramic murata cs a4.00mg 33 pf 10% 33 pf 10% murata cs ac4.00mgc 33 pf 10% 33 pf 10% oscillator kyocera kbr-4.0msa 33 pf 10% 33 pf 10% 2-mhz ceramic murata cs a2.00mg 33 pf 10% 33 pf 10% murata cs ac2.00mgc 33 pf 10% 33 pf 10% oscillator kyocera kbr-2.0msa 33 pf 10% 33 pf 10% [built-in capacitor] 4-mhz ceramic murata cs a4.00mg kyocera kbr-4.0mws oscillator kyocera kbr-4.0msa 2-mhz ceramic murata cs a2.00mg kyocera kbr-2.0mws oscillator 800-khz ceramic murata cs b800j 100 pf 10% 100 pf 10% 3.3 k oscillator kyocera kbr-800f/y 150 pf 10% 150 pf 10% 400-khz ceramic murata cs b400p 220 pf 10% 220 pf 10% 3.3 k oscillator kyocera kbr-400bk/y 330 pf 10% 330 pf 10%
figure 1 external clock input waveform figure 2 2-pin rc oscillator circuit figure 3 ceramic oscillator circuit no. 5117- 23 /39 LC6529N, lc6529f, lc6529l
figure 4 oscillator stabilization interval figure 5 comparator response speed (trs) timing figure 6 reset circuit no. 5117- 24 /39 LC6529N, lc6529f, lc6529l note: when the power supply rising interval is zero, a value of 0.1 f for cres produces a reset interval of 10 to 100 ms. if the power supply rising interval is larger, adjust cres to produce a minimum interval of 10 ms for the oscillation to stabilize.
lc6529l rc oscillator characteristics figure 7 gives the rc oscillator characteristics for the lc6529l. the frequency fluctuation range is as follows: for v dd = 2.2 to 6.0 v, ta = ?0 to +85 c, cext = 220 pf, and rext = 12.0 k , 275 khz = f mosc = 577 khz these results are only guaranteed for the above rc constants. if the above values are not available, keep the rc constants within the following ranges: (see figure 7.) rext = 3 to 20 k , cext = 150 to 390 pf note: 1. the oscillator frequency must be within the range between 350 and 750 khz for v dd = 5.0 v and ta = 25 c. 2. make sure that the oscillator frequency remains well within the operating clock frequency range (see frequency divider option table.) for the range v dd = 2.2 to 6.0 v, ta = ?0 to +85 c. figure 7 rc oscillator frequency data (sample values) no. 5117- 25 /39 LC6529N, lc6529f, lc6529l
LC6529N/f/l instruction table (by function) abbreviations: note: * the second and subsequent repetitions of an li or cla instruction produce the same effects as an nop instruction. ac: accumulator act: accumulator bit t cf: carry flag dp: data pointer e: e register m: memory m (dp): memory addressed by dp p (dp l ): i/o port specified by dp l pc: program counter stack stack register tm: timer tmf: timer overflow flag zf: zero flag ( ), [ ]: indicates the contents of a location ? : transfer direction, result +: addition ? subtraction : exclusive or no. 5117- 26 /39 LC6529N, lc6529f, lc6529l continued on next page. instruction code affected mnemonic operation description status note d 7 d 6 d 5 d 4 d 3 d 2 d 1 d 0 bits [accumulator manipulation instructions] cla clear ac 1 1 0 0 0 0 0 0 1 1 ac ? 0 set ac to zero. zf * clc clear cf 1 1 1 0 0 0 0 1 1 1 cf ? 0 clear cf to zero. cf stc set cf 1 1 1 1 0 0 0 1 1 1 cf ? 1 set cf to one. cf cma complement ac 1 1 1 0 1 0 1 1 1 1 ac ? (ac) take ones complement of ac. zf inc increment ac 0 0 0 0 1 1 1 0 1 1 ac ? (ac) + 1 add one to ac. zf, cf dec decrement ac 0 0 0 0 1 1 1 1 1 1 ac ? (ac) ?1 subtract one from ac. zf, cf tae transfer ac to e 0 0 0 0 0 0 1 1 1 1 e ? (ac) copy contents of ac to e. xae exchange ac with e 0 0 0 0 1 1 0 1 1 1 (ac) ? (e) exchange contents of ac and e. [memory manipulation instructions] inm increment m 0 0 1 0 1 1 1 0 1 1 m (dp) ? add one to m (dp). zf, cf [m (dp)] + 1 dem decrement m 0 0 1 0 1 1 1 1 1 1 m (dp) ? subtract one from m (dp). zf, cf [m (dp)] ?1 smb bit set m data bit 0 0 0 0 1 0 b 1 b 0 1 1 m (dp, b 1 b 0 ) ? 1 set bit specified by immediate data b 1 b 0 in m (dp) to one. clear bit specified by rmb bit reset m data bit 0 0 1 0 1 0 b 1 b 0 1 1 m (dp, b 1 b 0 ) ? 0 immediate data b 1 b 0 in zf m (dp) to zero. [arithmetic, logic and comparison instructions] ac ? (ac) + add contents of m (dp) to ad add m to ac 0 1 1 0 0 0 0 0 1 1 [m (dp)] contents of ac and store zf, cf result in ac. ac ? (ac) + add contents of m (dp) and adc add m to ac with cf 0 0 1 0 0 0 0 0 1 1 [m (dp)] + (cf) cf to contents of ac and zf, cf store result in ac. daa decimal adjust ac 1 1 1 0 0 1 1 0 1 1 ac ? (ac) + 6 add 6 to contents of ac. zf in addition das decimal adjust ac 1 1 1 0 1 0 1 0 1 1 ac ? (ac) + 10 add 10 to contents of ac. zf in subtraction ac ? (ac) xor contents of ac with exl exclusive or m to ac 1 1 1 1 0 1 0 1 1 1 [m (dp)] contents of m (dp) and store zf result in ac. compare contents of m (dp) with those of ac and set cf and zf according to result. cm compare ac with m 1 1 1 1 1 0 1 1 1 1 [m (dp)] + (ac) + 1 zf, cf number of bytes number of cycles
continued from preceding page. note: * the second and subsequent repetitions of an li or cla instruction produce the same effects as an nop instruction. no. 5117- 27 /39 LC6529N, lc6529f, lc6529l instruction code affected mnemonic operation description status note d 7 d 6 d 5 d 4 d 3 d 2 d 1 d 0 bits [accumulator manipulation instructions] compare contents of immediate data field (i 3 i 2 i 1 i 0 ) with those of ac and set cf and zf according compare ac with 0 0 1 0 1 1 0 0 to result. ci data immediate data 0 1 0 0 i 3 i 2 i 1 i 0 2 2 i 3 i 2 i 1 i 0 + (ac) + 1 zf, cf [load and store instructions] load ac with load ac with contents of li data immediate data 1 1 0 0 i 3 i 2 i 1 i 0 1 1 ac ? i 3 i 2 i 1 i 0 immediate data field zf * (i 3 i 2 i 1 i 0 ). s store ac to m 0 0 0 0 0 0 1 0 1 1 m (dp) ? (ac) copy contents of ac to m (dp). l load ac from m 0 0 1 0 0 0 0 1 1 1 ac ? [m (dp)] copy contents of m (d) to ac. zf [data pointer manipulation instructions] load dp h with zero clear dp h to zero and copy ldz and dp l with 1 0 0 0 i 3 i 2 i 1 i 0 1 1 dp h ? 0 contents of immediate data data immediate data dp l ? i 3 i 2 i 1 i 0 field (i 3 i 2 i 1 i 0 ) to dp l . respectively lhi data load dp h with 0 1 0 0 0 0 i 1 i 0 1 1 dp h ? i 1 i 0 copy contents of immediate immediate data data field (i 1 i 0 ) to dp h . ind increment dp l 1 1 1 0 1 1 1 0 1 1 dp l ? (dp l ) + 1 add one to dp l . zf ded decrement dp l 1 1 1 0 1 1 1 1 1 1 dp l ? (dp l ) ?1 subtract one from dp l . zf tal transfer ac to dp l 1 1 1 1 0 1 1 1 1 1 dp l ? (ac) copy contents of ac to dp l . tla transfer dp l to ac 1 1 1 0 1 0 0 1 1 1 ac ? (dp l ) copy contents of dp l to ac. zf [jump and subroutine instructions] jmp 0 1 1 0 1 0 p 9 p 8 pc ? p 9 p 8 p 7 p 6 jump to address in immediate addr jump p 7 p 6 p 5 p 4 p 3 p 2 p 1 p 0 2 2 p 5 p 4 p 3 p 2 data field (p 9 p 8 p 7 p 6 p 5 p 4 p 1 p 0 p 3 p 2 p 1 p 0 ). stack ? (pc) + 1 czp call subroutine in pc 9 to pc 6 , pc 1 , addr the zero page 1 0 1 1 p 3 p 2 p 1 p 0 1 1 pc 0 ? 0 call subroutine in zero page. pc 5 to pc 2 ? p 3 p 2 p 1 p 0 stack ? (pc) + 2 cal call subroutine 1 0 1 0 1 0 p 9 p 8 2 2 p 9 to p 0 ? 0 call subroutine. addr p 7 p 6 p 5 p 4 p 3 p 2 p 1 p 0 p 9 p 8 p 7 p 6 p 5 p 4 p 3 p 2 p 1 p 0 rt return from 0 1 1 0 0 0 1 0 1 1 pc ? (stack) return from subroutine. subroutine [branch instructions] pc 7 to pc 0 ? branch to specified address the mnemonic bat 0 1 1 1 0 1 t 1 t 0 p 7 p 6 p 5 p 4 in same page (p 7 to p 0 ) if bit includes decimal addr branch on ac bit p 7 p 6 p 5 p 4 p 3 p 2 p 1 p 0 2 2 p 3 p 2 p 1 p 0 specified by immediate data equivalent t of if act = 1 t 1 t 0 in ac is one. immediate data i.e., ba0 to ba3. the mnemonic pc 7 to pc 0 ? branch to specified address includes decimal bnat branch on no ac bit 0 0 1 1 0 0 t 1 t 0 2 2 p 7 p 6 p 5 p 4 in same page (p 7 to p 0 ) if bit equivalent t of addr p 7 p 6 p 5 p 4 p 3 p 2 p 1 p 0 p 3 p 2 p 1 p 0 specified by immediate data immediate data if act = 0 t 1 t 0 in ac is zero. i.e., bna0 to bna3. pc 7 to pc 0 ? branch to specified address the mnemonic bmt 0 1 1 1 0 1 t 1 t 0 p 7 p 6 p 5 p 4 in same page (p 7 to p 0 ) if bit includes decimal addr branch on m bit p 7 p 6 p 5 p 4 p 3 p 2 p 1 p 0 2 2 p 3 p 2 p 1 p 0 specified by immediate data equivalent t of if [m (dp, t 1 t 0 )] t 1 t 0 in m (dp) is one. immediate data = 1 i.e., bm0 to bm3. number of bytes number of cycles magnitude cf zf comparison i 3 i 2 i 1 i 0 > ac 0 0 i 3 i 2 i 1 i 0 = ac 1 1 i 3 i 2 i 1 i 0 < ac 1 0 continued on next page.
continued from preceding page. no. 5117- 28 /39 LC6529N, lc6529f, lc6529l instruction code affected mnemonic operation description status note d 7 d 6 d 5 d 4 d 3 d 2 d 1 d 0 bits [branch instructions] pc 7 to pc 0 ? the mnemonic p 7 p 6 p 5 p 4 branch to specified address includes decimal bnmt branch on no m bit 0 0 1 1 0 1 t 1 t 0 2 2 p 3 p 2 p 1 p 0 in same page (p 7 to p 0 ) if bit equivalent t of addr p 7 p 6 p 5 p 4 p 3 p 2 p 1 p 0 if [m (dp, t 1 t 0 )] specified by immediate data immediate data = 0 t 1 t 0 in m (dp) is zero. i.e., bnm0 to bnm3. pc 7 to pc 0 ? branch to specified address the mnemonic bpt 0 1 1 1 1 0 t 1 t 0 p 7 p 6 p 5 p 4 in same page (p 7 to p 0 ) if bit includes decimal addr branch on port bit p 7 p 6 p 5 p 4 p 3 p 2 p 1 p 0 2 2 p 3 p 2 p 1 p 0 specified by immediate data equivalent t of if [p (dp l , t 1 t 0 )] t 1 t 0 in p (dp l ) is one. immediate data = 1 i.e., bp0 to bp3. pc 7 to pc 0 ? the mnemonic p 7 p 6 p 5 p 4 branch to specified address includes decimal bnpt branch on no port bit 0 0 1 1 1 0 t 1 t 0 2 2 p 3 p 2 p 1 p 0 in same page (p 7 to p 0 ) if bit equivalent t of addr p 7 p 6 p 5 p 4 p 3 p 2 p 1 p 0 if [p (dp l , t 1 t 0 )] specified by immediate data immediate data = 0 t 1 t 0 in p (dp l ) is zero. i.e., bnp0 to bnp3. pc 7 to pc 0 ? branch to specified address btm 0 1 1 1 1 1 0 0 p 7 p 6 p 5 p 4 in same page (p 7 to p 0 ) addr branch on timer p 7 p 6 p 5 p 4 p 3 p 2 p 1 p 0 2 2 p 3 p 2 p 1 p 0 if tmf is one. clear tmf tmf if tmf = 1 to zero. then tmf ? 0 pc 7 to pc 0 ? branch to specified address bntm 0 0 1 1 1 1 0 0 p 7 p 6 p 5 p 4 in same page (p 7 to p 0 ) addr branch on no timer p 7 p 6 p 5 p 4 p 3 p 2 p 1 p 0 2 2 p 3 p 2 p 1 p 0 if tmf is zero. clear tmf tmf if tmf = 0 to zero. then tmf ? 0 pc 7 to pc 0 ? branch to specified address bc branch on cf 0 1 1 1 1 1 1 1 2 2 p 7 p 6 p 5 p 4 in same page (p 7 to p 0 ) addr p 7 p 6 p 5 p 4 p 3 p 2 p 1 p 0 p 3 p 2 p 1 p 0 if cf is one. if cf = 1 pc 7 to pc 0 ? branch to specified address bnc branch on no cf 0 0 1 1 1 1 1 1 2 2 p 7 p 6 p 5 p 4 in same page (p 7 to p 0 ) addr p 7 p 6 p 5 p 4 p 3 p 2 p 1 p 0 p 3 p 2 p 1 p 0 if cf is zero. if cf = 0 pc 7 to pc 0 ? branch to specified address bz branch on zf 0 1 1 1 1 1 1 0 2 2 p 7 p 6 p 5 p 4 in same page (p 7 to p 0 ) addr p 7 p 6 p 5 p 4 p 3 p 2 p 1 p 0 p 3 p 2 p 1 p 0 if zf is one. if zf = 1 pc 7 to pc 0 ? branch to specified address bnz branch on no zf 0 0 1 1 1 1 1 0 2 2 p 7 p 6 p 5 p 4 in same page (p 7 to p 0 ) addr p 7 p 6 p 5 p 4 p 3 p 2 p 1 p 0 p 3 p 2 p 1 p 0 if zf is zero. if zf = 0 [i/o instructions] ip input port to ac 0 0 0 0 1 1 0 0 1 1 ac ? [p (dp l )] copy contents of port zf specified by p (pd l ) to ac. op output ac to port 0 1 1 0 0 0 0 1 1 1 p (dp l ) ? (ac) copy contents of ac to port specified by p (dp l ). set bit specified by immediate execution of this spb bit set port bit 0 0 0 0 0 1 b 1 b 0 1 2 p (dp l , b 1 b 0 ) ? 1 data b 1 b 0 in port specified instruction by p (dp l ) to one. invalidates contents of e. clear bit specified by execution of this rpb bit reset port bit 0 0 1 0 0 1 b 1 b 0 1 2 p (dp l , b 1 b 0 ) ? 0 immediate data b 1 b 0 in port zf instruction specified by p (dp l ) to zero. invalidates contents of e. [other instructions] wttm write timer 1 1 1 1 1 0 0 1 1 1 tm ? (e), (ac) copy contents of e and ac to tmf tmf ? 0 timer. clear tmf to zero. execution halt halt 1 1 1 1 0 1 1 0 1 1 halt suspend all operations. requires that pin pa3 be high. nop no operation 0 0 0 0 0 0 0 0 1 1 no operation do nothing but consume one machine cycle. number of bytes number of cycles
the above subset excludes the following instructions from the lc6523, 6526 set and, bfn, bi, bnfn, bni, cli, jpea, or, ral, rctl, rfb, tri, rtbl, sctl, sfb, x, xah, xa0, xa1, xa3, xd, xh0, xh1, xi, xl0, xl1, and xm. specifying LC6529N/f/l user options specifying (ordering) LC6529N/f/l user options when developing the software or ordering the chip, the user must prepare an eprom containing the user program, user option data, and fixed data. there are two ways of preparing these last two: with software provided by sanyo and manually. this section discusses both methods. using sanyo? option specification software su60k, the software for specifying lc6529 options, interactively asks the user to specify the options and writes the results to a mask option file, file.opt. the m60k macro assembler assembles the user program into an object file, file.obj. the l60k linker merges the mask option and object files to create an eva file, file.eva. the eva2hex conversion tool converts the user program and mask options inside the eva file to an object file in hexadecimal (hex) format. the user use a prom writer to download this hex file to the eprom submitted when ordering the chip. for further details, see figure a below and refer to the lc65/66k software manual. alternate method 1. overview if not using the software for specifying lc6529 options, the user must list the mask options using the coding procedures described below and then write these with the program to the eprom regions shown in figure a. when ordering, the user must submit an option table list as well as the eprom. figure b gives an example of such a list. the procedures for coding the mask options appear on the pages following figure b. figure a lc6529 rom data no. 5117- 29 /39 LC6529N, lc6529f, lc6529l
2. sample option table list figure b sample option table list no. 5117- 30 /39 LC6529N, lc6529f, lc6529l
coding LC6529N/l mask options no. 5117- 31 /39 LC6529N, lc6529f, lc6529l
coding lc6529f mask options no. 5117- 32 /39 LC6529N, lc6529f, lc6529l
using standby halt mode the LC6529N/f/l features a convenient halt mode that reduces current drain while the chip is on standby. these standby functions involve the use of one instruction (halt) and two control signal pins (pa3 and res). for the functions to work properly, the design of external circuits and chip software must pay due attention to these three. depending on how extensively the standby functions are used, the designer must consider and provide countermeasures that protect the design from the effects of power supply fluctuations, power interruptions, external noise, and other adverse conditions. this document discusses the circuit and program design issues related to the most frequent application of the standby functions, the detection and recovery from power outages. when using the standby functions, follow the sample circuits given in this document and carefully observe all warnings accompanying them. departures from the design guidelines herein will warrant thorough testing and evaluation of the effects of such sudden changes in the operating environment as momentary power outages on application operation. 1. entering and leaving the halt mode table 1 gives the conditions for entering and leaving the halt mode. table 1 entering and leaving the halt mode note: the second method for leaving the halt mode is only available when the design uses an rc oscillator circuit. it may not work pr operly with a ceramic oscillator circuit. 2. important notes using the standby functions requires close attention to the following issues in application circuit and software design. the power supply voltage must not fall below the rating while the chip is on standby. carefully observe all timing restrictions for the control signals during transitions to and from the halt mode. make sure that a signal for leaving the halt mode does not overlap the execution of the halt instruction. this document demonstrates how to observe these restrictions by discussing both application circuits for a power failure recovery function and programming considerations. such a power failure recovery function detects failure of the main power supply and causes the chip to execute a halt instruction to put itself on standby. reducing the current drain this way allows the backup capacitor to maintain the register contents for a longer period than otherwise possible. when the power is restored, the chip is reset and automatically resumes execution with the program counter set to 000h. the following examples discuss how the software can then distinguish this type of reset from a power on reset sequence along with issues related to dealing with momentary ac power outages. example 1 the first example does not distinguish a power-on reset sequence from a reset trigger by a power failure. circuit diagram figure 2-1 gives the circuit diagram for this sample circuit. no. 5117- 33 /39 LC6529N, lc6529f, lc6529l entering halt mode leaving halt mode halt instruction while pa3 is high. 1. reset signal (res pin pulled low.) 2. pa3 pulled low.
note: all ports other than pa3 are configured as normal input ports. figure 2-1 power outage backup example 1 waveforms during operation figure 2-2 gives the waveforms relevant to the operation of the above circuit. there are three main states: (a) power-on reset sequence, (b) momentary break in main power supply, and (c) recovery from power outage backup state. note: v + tron = v + level at which transistor switches on and off figure 2-2 waveforms relevant to operation of circuit example 1 no. 5117- 34 /39 LC6529N, lc6529f, lc6529l unit (resistance: )
main circuit states a: power-on reset sequence once the power supply voltage has reached the proper level, the chip automatically resets and begins execution with the program counter set to 000 h . caution: this circuit does not reset the chip until the power supply voltage is within the range specified for v dd , so leaves the chip in an indeterminate state. b: momentary break in main power supply i. if only the res pin and none of the pxx pins drops below the threshold level v il , the chip resets and repeats the power-on reset sequence. ii. if the res pin and the pxx pins remain above the threshold level v il , the chip continues normal execution. iii. if both the res pin and the pxx pins drop below the threshold level v il , the chip resets if two consecutive polls fail to detect a low at pxx or, if a low is found, enters the halt mode and then, because the power has been restored, leaves the halt mode. c: recovery from power outage backup state since the power has been restored, the chip leaves the halt mode. design considerations a: v + rise time and c2 the v + rise time must be approximately ten times the rc constant for the reset circuit, c2 r, where r is the internal resistance (typ. 200 k ). it must also be no longer than approximately 20 ms. b: r1 and c1 values r1 must be as small as possible; c1, as large as possible to provide the longest backup time. at the same time, however, r1 must be large enough such that the c1 charging current does not exceed the power supply capacity. c: r2 and r3 values choose these to make the pxx high levels equal to v dd . d: r4 value select r4 and thus the rc constant for c2 and r4 so that c2 discharges sometime in the interval between the point at which v + falls below v + tron (turning off the transistor) and the point at which pxx falls below v il . (otherwise, the chip will enter the halt mode and then not respond to a reset.) e: r5 and r6 values select r5 and r6 so that v + when the reset circuit operates, switching on the transistor (that is, when r5 and r6 produce a v be of approximately 0.6 v) is at least the minimum operating voltage (v dd ) plus the v f for diode d1. to provide a rapid reset once the power is restored, however, keep this voltage as small as possible while still satisfying these conditions. f: calculating backup time from the time that the chip detects the power outage at pxx until it executes the halt instruction, the chip operates normally so drains relatively large amounts of current. c1 must therefore be large enough to provide backup power not only for the set's backup period, but for this transitional period as well. software considerations a: assign signals so that pa3 is maintained high during standby operation. b: the software should double-check a standby request by polling twice. example: bp1 aaa : poll once bp1 aaa : poll twice halt : begin standby operation aaa : no. 5117- 35 /39 LC6529N, lc6529f, lc6529l
example 2 the second example distinguishes a power-on reset sequence from a reset trigger by a power failure. circuit diagram figure 2-3 gives the circuit diagram for this sample circuit. note: all ports other than pa3 are configured as normal input ports. figure 2-3 power outage backup example 2 waveforms during operation figure 2-4 gives the waveforms relevant to the operation of the above circuit. there are two main states: (a) power-on reset sequence and (b) recovery from power outage backup state. note: v + tron = v + level at which transistor switches on and off figure 2-4 waveforms relevant to operation of circuit example 2 no. 5117- 36 /39 LC6529N, lc6529f, lc6529l
main circuit states a: power-on reset sequence the operation and points to watch are the same as for the first example. the only difference is that the software interprets a low at pxx as indicating an initial reset. b: switch to standby operation the chip polls pxx and, if it is low, enters the halt mode. c: recovery from power outage backup state since the power has been restored, the chip leaves the halt mode. if the recovery routine then finds that pxx is high, it switches to a separate routine for restarting after a power outage. caution: if the power supply voltage v dd drops below the v ih level for pxx during the outage, this recovery routine will subsequently find that pxx is low and execute the routine for an initial reset instead. design considerations a: r2 and r3 values make r2 much greater than r1 and choose r3 to limit tr2? i b . b: r4 value since there are no momentary outages, the value is not critical, but select r4 so that c2 quickly discharges. in all other respects, the same considerations apply as in example 1. software considerations a: assign signals so that pa3 is maintained high during standby operation. b: the software should check for a standby request by polling once. example: example 3 the third example adds support for momentary power outages. circuit diagram figure 2-5 gives the circuit diagram for this sample circuit. note: all ports other than pa3 are configured as normal input ports. figure 2-5 power outage backup example 3 bp1 aaa : poll port halt : begin standby operation aaa : no. 5117- 37 /39 LC6529N, lc6529f, lc6529l
waveforms during operation figure 2-5 gives the waveforms relevant to the operation of the above circuit. there are three main states: (a) power-on reset sequence, (b) momentary break in main power supply, and (c) recovery from power outage backup state. note: v + tr1on = v + level at which transistor tr1 switches on and off v + tr3on = v + level at which transistor tr3 switches on and off figure 2-5 waveforms relevant to operation of circuit example 3 main circuit states a: power-on reset sequence the operation and points to watch are the same as for the second example. b: momentary break in main power supply i. if only the res pin and none of the pxx pins drops below the threshold level v il , the chip resets. if the recovery routine then finds that pxx is high, it switches to a separate routine for restarting after a power outage. ii. if the res pin and the pxx pins remain above the threshold level v il , the chip continues normal execution. iii. if both the res pin and the pxx pins drop below the threshold level v il , the chip resets if two consecutive polls fail to detect a low at pxx or, if a low is found, enters the halt mode and then, because the power has been restored, leaves the halt mode. if the recovery routine then finds that pxx is high, it switches to a separate routine for restarting after a power outage. c: recovery from power outage backup state the operation and points to watch are the same as for the second example. design considerations a: r3 value this serves as the bias resistor for transistor tr2. b: r7 and r8 values select these so that transistor tr3 switches on and off at approximately 1.5 v. in all other respects, the same considerations apply as in example 1. software considerations the same considerations apply as in example 1. no. 5117- 38 /39 LC6529N, lc6529f, lc6529l
ps no. 5117- 39 /39 LC6529N, lc6529f, lc6529l this catalog provides information as of september, 1995. specifications and information herein are subject to change without notice. n no products described or contained herein are intended for use in surgical implants, life-support systems, aerospace equipment, nuclear power control systems, vehicles, disaster/crime-prevention equipment and the like, the failure of which may directly or indirectly cause injury, death or property loss. n anyone purchasing any products described or contained herein for an above-mentioned use shall: accept full responsibility and indemnify and defend sanyo electric co., ltd., its affiliates, subsidiaries and distributors and all their officers and employees, jointly and severally, against any and all claims and litigation and all damages, cost and expenses associated with such use: not impose any responsibility for any fault or negligence which may be cited in any such claim or litigation on sanyo electric co., ltd., its affiliates, subsidiaries and distributors or any of their officers and employees jointly or severally. n information (including circuit diagrams and circuit parameters) herein is for example only; it is not guaranteed for volume production. sanyo believes information herein is accurate and reliable, but no guarantees are made or implied regarding its use or any infringements of intellectual property rights or other rights of third parties.


▲Up To Search▲   

 
Price & Availability of LC6529N

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X